package com.kgc.est.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "预约信息入参")
public class AppointmentReq implements Serializable {

    @ApiModelProperty(value = "评估ID")
    private Long evaluateId;

    @ApiModelProperty(value = "预约手机号")
    private String phone;

    @ApiModelProperty(value = "预约上门地址")
    private String adress;

    @ApiModelProperty(value = "预约上门时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date appintDate;

    @ApiModelProperty(value = "预约上门时间区间")
    private Integer temporalInterval;

    @ApiModelProperty(value = "手机验证码")
    private String sms;

    @ApiModelProperty(value = "token")
    private String token;
}
